package com.zgz.underwrite.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;


/**
 * 保险单
 * @author zgz
 *
 */
@Entity
@Table(name="insurancePolicy")
public class InsurancePolicy implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -5639317173989376122L;

	@Id
	@GeneratedValue(generator = "paymentableGenerator")     
	@GenericGenerator(name = "paymentableGenerator", strategy = "assigned")
	private String SPolicyNo; //核保单号
	
    private Date TUdrTm;//核保日期
    private Department dept;//核保机构
    private Employee emp;//核保人
    @OneToOne
    @JoinColumn(name="SAppNo")
    private InsuranceApplication app;//投保单
    private String CUdrFlg;//核保标志,通过，不通过
	private String SStatus;//自动核保，还是人工核保
	private String SPassedUdrResult;//通过核保结果
	private String SNotPassedUdrResult;//不通过核保结果
	private String SMinLevel;//最低核保权限
	
	public String getSPolicyNo() {
		return SPolicyNo;
	}
	public void setSPolicyNo(String sPolicyNo) {
		SPolicyNo = sPolicyNo;
	}

	public Date getTUdrTm() {
		return TUdrTm;
	}
	public void setTUdrTm(Date udrTm) {
		TUdrTm = udrTm;
	}
	public Department getDept() {
		return dept;
	}
	public void setDept(Department dept) {
		this.dept = dept;
	}
	public Employee getEmp() {
		return emp;
	}
	public void setEmp(Employee emp) {
		this.emp = emp;
	}
	public InsuranceApplication getApp() {
		return app;
	}
	public void setApp(InsuranceApplication app) {
		this.app = app;
	}
	public String getCUdrFlg() {
		return CUdrFlg;
	}
	public void setCUdrFlg(String udrFlg) {
		CUdrFlg = udrFlg;
	}
	public String getSStatus() {
		return SStatus;
	}
	public void setSStatus(String status) {
		SStatus = status;
	}
	public String getSPassedUdrResult() {
		return SPassedUdrResult;
	}
	public void setSPassedUdrResult(String passedUdrResult) {
		SPassedUdrResult = passedUdrResult;
	}
	public String getSNotPassedUdrResult() {
		return SNotPassedUdrResult;
	}
	public void setSNotPassedUdrResult(String notPassedUdrResult) {
		SNotPassedUdrResult = notPassedUdrResult;
	}
	public String getSMinLevel() {
		return SMinLevel;
	}
	public void setSMinLevel(String minLevel) {
		SMinLevel = minLevel;
	}
}
